{layout name="p/base"}
    <div class="row">
      <div class="col-lg-12">
        <h1>会员管理 <small>会员信息编辑</small></h1>
        <ol class="breadcrumb">
          <li><a href="index.php"><i class="fa fa-dashboard"></i> 管理首页</a></li>
          <li><a href="/user/userlist"><i class="fa fa-dashboard"></i> 会员列表信息</a></li>
          <li class="active"><i class="fa fa-table"></i> 会员信息编辑</li>
        </ol>
        <div class="alert alert-success alert-dismissable">
          <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
          请准确编辑会员信息
        </div>
      </div>
    </div>
    <!-- /.row -->
    <div class="row">
      <!-- 选项卡start -->
      <div class="bs-example">
      	<!-- 选项卡标题start -->
        <ul class="nav nav-tabs" style="margin-bottom:15px;">
          <li class="active">
            <a href="#one" data-toggle="tab">会员信息</a>
          </li>
        </ul>
        <!-- 选项卡标题end -->
        <!-- 选项卡内容start -->
        <div id="myTabContent" class="tab-content">
          <!-- 选项卡内容1会员类型start -->
          <div id="one" class="tab-pane fade active in">
            <!-- 基本信息start -->
            <div class="col-lg-10">
              <!-- 会员信息start -->
              <form class="form-horizontal" role="form" action="/user/checked" method="post">
                <input type="hidden" name="id" value="{$userinfo.id}">
                <input type="hidden" name="caravan_id" value="{$caravaninfo['id']}">
                  <div class="form-group">
                    <label class="control-label col-sm-2">账号</label>
                    <div class="col-sm-4">
                      <input class="form-control" type="text" value="{$userinfo.mobile}" name="mobile" placeholder="85468585@qq.com" readonly>
                    </div>
                    <label class="control-label col-sm-2">姓名</label>
                    <div class="col-sm-4">
                      <input class="form-control" type="text" name="name" value="{$userinfo.real_name}" readonly>
                    </div>
                  </div>
                  <div class="form-group">
                    <label class="control-label col-sm-2">手机号码</label>
                    <div class="col-sm-4">
                      <input class="form-control" type="text" name="" value="{$userinfo.phone}">
                    </div>
                    <label class="control-label col-sm-2">邮箱地址</label>
                    <div class="col-sm-4">
                      <input class="form-control" type="text" name="" value="{$userinfo.email}">
                    </div>
                  </div>
                  <div class="form-group">
                    <label class="control-label col-sm-2">通讯地址</label>
                    <div class="col-sm-4">
                      <input class="form-control" type="text" name="" value="{$userinfo.address}" placeholder="" readonly>
                    </div>
                    <label class="control-label col-sm-2">营地</label>
                    <div class="col-sm-4 control-label text-left">
                      <a href="/camp/{$camp_id}">{$userinfo.camps.name}</a>
                    </div>
                  </div>
                  <!-- 查看房车审核信息start -->
                  <div class="form-group">
                    <label class="control-label col-sm-2">房车</label>
                    <div class="col-sm-2 control-label">
                      <a  id="caravancheckhref" style="cursor:pointer;">房车审核信息</a>
                    </div>
                  </div>
                  
                  <div id="caravancheck">
                    <div class="form-group">
                      <label class="control-label col-sm-2">房车品牌</label>
                      <div class="col-sm-4">
                        <input class="form-control" type="text" value="{$caravaninfo.carbrands.name}" name="mobile" placeholder="" readonly>
                      </div>
                      <label class="control-label col-sm-2">车型</label>
                      <div class="col-sm-4">
                        <input class="form-control" type="text" name="name" value="{$caravaninfo.carcates.name}" readonly>
                      </div>
                    </div>
                    <div class="form-group">
                      <label class="control-label col-sm-2">注册日期</label>
                      <div class="col-sm-4">
                        <input class="form-control" type="text" value="{$caravaninfo.registration}" name="mobile" placeholder="" readonly>
                      </div>
                      <label class="control-label col-sm-2">房车服务机构</label>
                      <div class="col-sm-4">
                        <input class="form-control" type="text" name="name" value="{$caravaninfo.services}" readonly>
                      </div>
                    </div>
                    <div class="form-group">
                      <label class="control-label col-sm-2">可住几人</label>
                      <div class="col-sm-4">
                        <input class="form-control" type="text" name="name" value="{$caravaninfo.people_num}" readonly>
                      </div>
                    </div>
                    <div class="form-group">
                      <label class="control-label col-sm-2">单人床数量</label>
                      <div class="col-sm-4">
                        <input class="form-control" type="text" value="{$caravaninfo.single_bed_num}" name="mobile" placeholder="" readonly>
                      </div>
                      <label class="control-label col-sm-2">双人床数量</label>
                      <div class="col-sm-4">
                        <input class="form-control" type="text" name="name" value="{$caravaninfo.double_bed_num}" readonly>
                      </div>
                    </div>
                    <div class="form-group">
                      <label class="control-label col-sm-2">厨房</label>
                      <div class="col-sm-4">
                        <input class="form-control" type="text" value="{$caravaninfo.kitchen}" name="mobile" placeholder="" readonly>
                      </div>
                      <label class="control-label col-sm-2">卫生间</label>
                      <div class="col-sm-4">
                        <input class="form-control" type="text" name="name" value="{$caravaninfo.bathroom}" readonly>
                      </div>
                    </div>

                    <div class="form-group">
                      <label class="control-label col-sm-2">房车封面图片</label>
                      <div class="col-sm-8">
                        {if !empty($caravaninfo['caravancover'][0])}
                        <img src="{$caravaninfo.caravancover[0]}" style="width:100%;">
                        {/if}
                      </div>
                    </div>
                    <div class="form-group">
                      <label class="control-label col-sm-2">房车内容图片</label>
                      <div class="col-sm-8">
                      {if !empty($caravaninfo['piccaravan'])}
                      {foreach $caravaninfo.piccaravan as $key=>$value}
                        <img src="{$caravaninfo.piccaravan[$key]}" style="width:40%; padding-bottom:10px;">
                      {/foreach}
                      {/if}
                      </div>
                    </div>
                  </div>
                  <!-- 查看房车审核信息end -->
                  <div class="form-group">
                    <div class="btn-group mybtn col-sm-4 col-sm-offset-2">
                      <button class="btn btn-primary" type="submit" value="1" name="status" data-toggle="modal" data-target="#myModal1">通过审核</button>
                      <button class="btn btn-primary" type="submit" value="-99" name="status" data-toggle="modal" data-target="#myModal2">拒绝通过审核</button>
                    </div>
                  </div>
                  <div class="modal-footer">
                    <input type="button" value="返回" class="btn btn-default"  onclick="javascript:history.back(-1);" />
                  </div>
                  <!-- 通过审核模态框（Modal） -->
                  <div class="modal fade" id="myModal1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                      <div class="modal-dialog">
                          <div class="modal-content">
                              <div class="modal-header">
                                  <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                                  <h4 class="modal-title" id="myModalLabel">确认提交审核</h4>
                              </div>
                              <div class="modal-body">是否确认通过审核</div>
                              <div class="modal-footer">
                                  <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                                  <button type="submit" value="1" name="status" class="btn btn-primary">是</button>
                              </div>
                          </div><!-- /.modal-content -->
                      </div><!-- /.modal -->
                  </div>
                  <!-- 拒绝审核模态框（Modal） -->
                  <div class="modal fade" id="myModal2" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                      <div class="modal-dialog">
                          <div class="modal-content">
                              <div class="modal-header">
                                  <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                                  <h4 class="modal-title" id="myModalLabel">拒绝  审核</h4>
                              </div>
                              <div class="modal-body">
                                <div class="form-group">
                                  <label class="control-label">拒绝理由：</label>
                                  <div>
                                    <textarea class="form-control" type="text" name="refuse" value="请简单填写拒绝理由"></textarea>   
                                  </div>
                                </div>
                              </div>
                              <div class="modal-footer">
                                  <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                                  <button type="submit" value="-99" name="status" class="btn btn-primary">是</button>
                              </div>
                          </div><!-- /.modal-content -->
                      </div><!-- /.modal -->
                  </div>
              </form>
              <!-- 会员信息end -->
            </div>
            <!-- 基本信息end -->
          </div>
          <!-- 选项卡内容1会员类型end -->
        </div>
        <!-- 选项卡内容end -->
      </div>
      <!-- 选项卡end -->
    </div>